package com.zhifou.controller;

import com.zhifou.model.SpManager;
import com.zhifou.model.User;
import com.zhifou.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

/**
 * @Author Gong
 * @Description
 * @dATE 2024/2/27 16:04
 **/
@Controller
@RequestMapping("/spmanager")
public class SpManagerController {
    @Autowired
    private UserService userService;
    @RequestMapping("/spmanagerlist")
    @ResponseBody
    public List<SpManager> getSpManagerList() {
        List<SpManager> spManagers = userService.getSpManagerList();
        return spManagers;
    }

}
